<div class="_people">
    <div class="title">联系人</div>
    <div class="box">
        <div class="connect">
            <div class="ftitle">好友列表<i class='icon-add'></i>
            </div>
            <div class="inbox">
                {{#if $Cache_friends_list}} {{#each $Cache_friends_list}}
                <div class="item" data="{{sid||tid}}" id="{{chatid}}" event-click="{{'$Top.$Event.change_chat'}}">
                    <div class="flogo">
                        <img bind-src="{{logo||'/images/userhead.jpg'}}">
                    </div>
                    <div class="fname">{{nickname}}</div>
                </div>
                {{/each}} {{#else}}
                <p></p>
                {{/if}}
            </div>
        </div>
        <div class="chatbox">
            {{#if $Cache_chat_now}}
            <div class="titlebox">
                <div class="ctitle">
                    <i class="icon-message"></i>
                    <img bind-src="{{$Cache_chat_now.logo}}" />与 {{$Cache_chat_now.name}} 聊天中
                </div>
                <div class="tools">
                    <i class="icon-shuaxin" event-click="{{'$Event.show_clear_btn'}}"></i>
                    <!-- <div class="tools_nav {{$Cache_clear_btn&&'focus'}}">
                        <div class="item" event-click="{{'$Event.clear_chat_now'}}">
                            清空聊天记录
                        </div>
                    </div> -->
                </div>
            </div>
            <div class="msgbox">
                {{#each $Cache_chat_now_list.chat}}
                <div bind-class="item {{chatid==$Top.loginer.sid&&'focus'}}">
                    <div class="inbox">
                        <div class="msg">
                            {{#if chattype==2}}
                            <img bind-src="{{src}}" />{{#else}} {{chat}} {{/if}}
                        </div>
                        <div class="time"><b>{{time}}</b>
                        </div>
                    </div>
                </div>
                {{/each}}
            </div>
            <div class="rebox">
                <input type="text" bind-input="{{'$Cache_send_chat_msg'}}" bind-value="{{$Cache_send_chat_msg}}" placeholder="请输入内容" event-enter="{{'$Event.send_chat_msg'}}" />
                <div class="icon-baocun" event-click="{{'$Event.send_chat_img_click'}}" title="发送图片"></div>
                <button event-click="{{'$Event.send_chat_msg'}}">发送</button>
                <input id="send_chat_img" type="file" style="display:none" event-change="{{'$Event.send_chat_img'}}" />
            </div>
            {{#else}}
            <p>选择好友聊天</p>
            {{/if}}
        </div>
    </div>
</div>
